package com.kayt.cyberBar.company.business.entity.po;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.*;


/**
 * The persistent class for the b_company_base_order database table.
 * 
 */
@Entity
@Table(name="b_company_base_order")
@NamedQuery(name="BCompanyBaseOrder.findAll", query="SELECT b FROM BCompanyBaseOrder b")
public class BCompanyBaseOrder implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String addr;
	private String addrCode;
	private String code;
	private String createTime;
	private String cyberCode;
	private String cyberName;
	private String confirmTime;
	private String price;
	private String remainPrice;
	private String promotePrice;
	private String rebateCash;
	private String statusCode;
	private String typeCode;
	private String account;
	private String updateTime;
	private String dealerCode;
	private String dealerName;
	private String inBound;
	private String remark;
	private String postage;
	
	private List<BCompanyBaseOrderItem> itemList = new ArrayList<>();

	public BCompanyBaseOrder() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getAddr() {
		return this.addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	@Column(name="IN_BOUND")
	public String getInBound() {
		return inBound;
	}


	public void setInBound(String inBound) {
		this.inBound = inBound;
	}
	
	@Column(name="POSTAGE")
	public String getPostage() {
		return postage;
	}


	public void setPostage(String postage) {
		this.postage = postage;
	}


	@Column(name="ADDR_CODE")
	public String getAddrCode() {
		return this.addrCode;
	}

	public void setAddrCode(String addrCode) {
		this.addrCode = addrCode;
	}


	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getAccount() {
		return account;
	}


	public void setAccount(String account) {
		this.account = account;
	}


	@Column(name="CONFIRM_TIME")
	public String getConfirmTime() {
		return confirmTime;
	}


	public void setConfirmTime(String confirmTime) {
		this.confirmTime = confirmTime;
	}


	@Column(name="CREATE_TIME")
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
	@Column(name="DEALER_CODE")
	public String getDealerCode() {
		return dealerCode;
	}


	public void setDealerCode(String dealerCode) {
		this.dealerCode = dealerCode;
	}

	@Column(name="DEALER_NAME")
	public String getDealerName() {
		return dealerName;
	}


	public void setDealerName(String dealerName) {
		this.dealerName = dealerName;
	}


	@Column(name="CYBER_CODE")
	public String getCyberCode() {
		return this.cyberCode;
	}

	public void setCyberCode(String cyberCode) {
		this.cyberCode = cyberCode;
	}
	
	@Column(name="CYBER_NAME")
	public String getCyberName() {
		return cyberName;
	}


	public void setCyberName(String cyberName) {
		this.cyberName = cyberName;
	}

	public String getPrice() {
		return this.price;
	}

	public void setPrice(String price) {
		this.price = price;
	}


	@Column(name="REMAIN_PRICE")
	public String getRemainPrice() {
		return this.remainPrice;
	}

	public void setRemainPrice(String remainPrice) {
		this.remainPrice = remainPrice;
	}

	@Column(name="PROMOTE_PRICE")
	public String getPromotePrice() {
		return promotePrice;
	}


	public void setPromotePrice(String promotePrice) {
		this.promotePrice = promotePrice;
	}

	@Column(name="REBATE_CASH")
	public String getRebateCash() {
		return rebateCash;
	}


	public void setRebateCash(String rebateCash) {
		this.rebateCash = rebateCash;
	}


	@Column(name="STATUS_CODE")
	public String getStatusCode() {
		return this.statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}


	@Column(name="TYPE_CODE")
	public String getTypeCode() {
		return this.typeCode;
	}

	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}


	@Column(name="UPDATE_TIME")
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}


	@OneToMany(targetEntity = BCompanyBaseOrderItem.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "order")
	public List<BCompanyBaseOrderItem> getItemList() {
		return itemList;
	}


	public void setItemList(List<BCompanyBaseOrderItem> itemList) {
		this.itemList = itemList;
	}

	@Column(name="REMARK")
	public String getRemark() {
		return remark;
	}


	public void setRemark(String remark) {
		this.remark = remark;
	}
	

}